package cn.tedu.spotms.server.pojo.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AdminAddNewDTO implements Serializable {

    @NotNull(message = "添加管理员失败，必须填写用户名!")
    @Length(min = 6,max = 12,message = "用户名长度必须在6到12个字符之间")
    private String username;

    @NotNull(message = "添加管理员失败，必须填写密码!")
    @Length(min = 6,max = 12,message = "密码长度必须在6到12个字符之间")
    private String password;
    private String nickname;
    private String avatar;

    @NotNull(message = "添加管理员失败，必须填写手机号码!")
    private String phone;
    private String email;
    private Integer isEnable;

}
